<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <ui:composition template="/faces/templates/master.xhtml">
        <ui:define name="content">
            <h:outputStylesheet library="css" name="persdaten.css"/>
            <p:button value="Neu" outcome="/faces/user/neuesRev.xhtml?faces-redirect=true"/>
            <p:dataTable  var="rev" value="#{revAnlegenBean.holeRevier()}">
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Revier"/>
                    </f:facet>
                    <h:outputText value="#{rev.revierName}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="amtl. Schlüsselnr."/>
                    </f:facet>
                    <h:outputText value="#{rev.amtlSchlNrGem}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="amtl. Schlüsselnr."/>
                    </f:facet>
                    <h:outputText value="#{rev.nrRevLst}"/>
                </p:column>
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Art"/>
                    </f:facet>
                    <h:outputText value="#{rev.holeRevArt()}"/>
                </p:column>
                <p:column>
                    <h:form>
                        <p:commandButton icon="ui-icon-trash" title="Löschen" action="#{revAnlegenBean.loeschen(rev)}" ajax="false"/>
                    </h:form>
                </p:column>
            </p:dataTable>
        </ui:define>
    </ui:composition>
</html>

